<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<HTML>
	<BODY>
		<%
			String result = (String)session.getAttribute("content");
			String restList = (String)session.getAttribute("restList");
			String snippetList = (String)session.getAttribute("snippetList");
			String[] candidateRest = restList.split(" ");
			String[] snippets = snippetList.split("--");
		%>
	
		<DIV id="SearchBar" style="margin-left:10px;">
		<FORM METHOD="post" ACTION="getResult" >
			<IMG SRC="img/02.jpg" width="60">
			<INPUT TYPE="text" NAME="queryTerm" SIZE=50 style="margin-bottom:20px;margin-left:8px;">
			<INPUT TYPE="submit" Value="Search" style="margin-bottom:20px;margin-left:2px;">
		</FORM>
		</DIV>

<hr>
		<%
			for(int i=0; i<candidateRest.length; i++){
				String address = "d:\\"+candidateRest[i]+".jpg";
				String url = "e:\\review file\\"+candidateRest[i]+".xml";
		%>
			
			<a href="<%=url %>"><%=candidateRest[i] %></a><br>
			<h1><%=snippets[i] %></h1><br>
			<img src="<%=address %>"/><br>
		<%
			}
		%>
		

		

	</BODY>
</HTML>